package com.blog.system.mapper;

import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.blog.system.domain.StudyRoom;

/**
 * 自习室Mapper接口
 * 
 * @author ruoyi
 * @date 2025-03-13
 */
public interface StudyRoomMapper extends BaseMapper<StudyRoom>

{
    /**
     * 查询自习室
     * 
     * @param roomId 自习室主键
     * @return 自习室
     */
    public StudyRoom selectStudyRoomByRoomId(String roomId);

    /**
     * 查询自习室列表
     * 
     * @param studyRoom 自习室
     * @return 自习室集合
     */
    public List<StudyRoom> selectStudyRoomList(StudyRoom studyRoom);

    /**
     * 新增自习室
     * 
     * @param studyRoom 自习室
     * @return 结果
     */
    public int insertStudyRoom(StudyRoom studyRoom);

    /**
     * 修改自习室
     * 
     * @param studyRoom 自习室
     * @return 结果
     */
    public int updateStudyRoom(StudyRoom studyRoom);

    /**
     * 删除自习室
     * 
     * @param roomId 自习室主键
     * @return 结果
     */
    public int deleteStudyRoomByRoomId(String roomId);

    /**
     * 批量删除自习室
     * 
     * @param roomIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteStudyRoomByRoomIds(String[] roomIds);
}
